import {createBrowserRouter} from 'react-router-dom'
import App from '../App'
const router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>
    },
    {
        path:'/login',
        lazy:async()=>{
            const {default:Login}=await import('../pages/Login')
            return {
                element:<Login></Login>
            }
        }
    }
])
export default router